package com.xizimall.controller;

import org.aspectj.apache.bcel.generic.ReturnaddressType;
import org.omg.CORBA.PUBLIC_MEMBER;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.xizimall.service.ItemParamItemService;

/**
 * 展示商品规格参数
 * <p>Title: ItemParamItemController</p>
 * <p>Description: </p>
 * <p>华南理工大学研究生</p> 
 * @author	李隆熹
 * @date	2018年4月17日下午4:58:33
 * @version 1.0
 */
@Controller
public class ItemParamItemController {
@Autowired
private ItemParamItemService itemParamItemService;
@RequestMapping("/showitem/{itemId}")
public ModelAndView showItemParam(@PathVariable Long itemId){
	ModelAndView modelAndView=new ModelAndView();
	String string=itemParamItemService.getItemParamByItemId(itemId);
	modelAndView.addObject("itemParam",string);
	modelAndView.setViewName("item");
	return modelAndView;
	}

}
